from .. import db
from datetime import datetime
class Version(db.Model):
    __tablename__ = "versions"
    id = db.Column(db.Integer, primary_key=True)
    tool_id = db.Column(db.Integer,db.ForeignKey('tools.id'))
    version = db.Column(db.String(20))
    tool_name = db.Column(db.String(64))
    is_latest = db.Column(db.Boolean,default=False)
    timestamp = db.Column(db.DateTime, index=True, default=datetime.utcnow)

